fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How to make my EA count candles after a condition is met.

    Questions & Answers
    4
    7
    431
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lanrayy
      lanrayy last edited by lanrayy

      Hi

      I would like to make my EA count a certain number of candles after my custom indicator appears for the first time before placing a trade when the custom indicator appears the second time. ![alt text](Screenshot_14.png image url)

      This is the link to my project. I believe it should work like this but its not working. https://fxdreema.com/shared/9mnIGmaab

      What i simply want the EA to do is to count a certain number (eg. 30) of candles (equal or greater than) or wait for a set period of time (eg. 30mins) after a green buffer appears and place sell trade when the red buffer appears and vice versa.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        But what happens if a new dot appears on the chart before those 30 candles have been passed since the previous one? Should that invalidate the previous count and begin a new one from the new dot?

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        lanrayy 1 Reply Last reply Reply Quote 0
        • S
          sktsec last edited by

          Do you mean the number of candles between signals ? Maybe you can loop back to locate the last signal candle whenever a new signal appear

          lanrayy 1 Reply Last reply Reply Quote 0
          • lanrayy
            lanrayy @sktsec last edited by

            @sktsec said in How to make my EA count candles after a condition is met.:

            Do you mean the number of candles between signals ? Maybe you can loop back to locate the last signal candle whenever a new signal appear

            Could you please show/tell me how to do the loop back?

            S 1 Reply Last reply Reply Quote 0
            • lanrayy
              lanrayy @l'andorrà last edited by

              @l-andorrà said in How to make my EA count candles after a condition is met.:

              But what happens if a new dot appears on the chart before those 30 candles have been passed since the previous one? Should that invalidate the previous count and begin a new one from the new dot?

              Yes exactly. A new count should begin if it happens that way. I only want the EA to place trades if there has been minimum of 30 or more candles in between the last dot and the current one.

              1 Reply Last reply Reply Quote 0
              • jstap
                jstap last edited by

                Put a variable into a comment to watch, once per par (in separate trees) +1 to the variable, then every time the indicator appears reset to 0, you can then check this number in a condition.

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

                1 Reply Last reply Reply Quote 1
                • S
                  sktsec @lanrayy last edited by

                  @lanrayy
                  A simple approach is to use the loop block to loop back until the indicator signal appear.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  F
                  M
                  A
                  L
                  O
                  S
                  E
                  J
                  D
                  M
                  X
                  K

                  22
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors